﻿using System;
namespace Pay.DTO.rpay2 {
	/// <summary>
	/// 快捷支付请求
	/// </summary>
	public class rpay2_kj_req : rpay2_req_base {
		public rpay2_kj_req() {
			pay_type = "10803";
		}
		/// <summary>
		/// 商户号
		/// </summary>
		public string pay_type { get; set; }
		/// <summary>
		/// 商户号
		/// </summary>
		public string mch_id { get; set; }
		/// <summary>
		/// 订单号
		/// </summary>
		public string out_order_no { get; set; }
		/// <summary>
		/// 终端交易时间:YYYYMMDDHHMMSS
		/// </summary>
		public string terminal_time { get; set; }
		/// <summary>
		/// 金额(分)
		/// </summary>
		public string total_fee { get; set; }
		/// <summary>
		/// 支付卡预留手机号(只支持信 用卡支付)
		/// </summary>
		public string phoneNo { get; set; }
		/// <summary>
		/// 支付卡姓名
		/// </summary>
		public string customerName { get; set; }
		/// <summary>
		/// 支付卡身份证号
		/// </summary>
		public string cerdId { get; set; }
		/// <summary>
		/// 支付卡号(信用卡)
		/// </summary>
		public string acctNo { get; set; }
		/// <summary>
		/// 信用卡 cvv
		/// </summary>
		public string cvn2 { get; set; }
		/// <summary>
		/// 信用卡有效期
		/// </summary>
		public string expDate { get; set; }
		/// <summary>
		/// 结算卡开户行名称(银行名称)
		/// </summary>
		public string bankname_withdraw { get; set; }
		/// <summary>
		/// 结算卡号(信用卡)
		/// </summary>
		public string acctNo_withdraw { get; set; }
		/// <summary>
		/// 代付金额，向上取整，单位分 (交易金额-交易金额*费率- 代付费)
		/// </summary>
		public string money_withdraw { get; set; }
		/// <summary>
		/// 结算卡姓名(支付卡与结算卡 同个姓名)
		/// </summary>
		public string customerName_withdraw { get; set; }
		/// <summary>
		/// 用户费率：T0 费率‰:比如千分 4.5 填写 4.5
		/// </summary>
		public string fee0 { get; set; }
		/// <summary>
		/// 代付费:比如 1 元填写 100
		/// </summary>
		public string d0fee { get; set; }
		/// <summary>
		/// 通知地址
		/// </summary>
		public string notify_url { get; set; }
	}

	/// <summary>
	/// 快捷支付响应
	/// </summary>
	public class rpay2_kj_resp : rpay2_resp_base {
		/// <summary>
		/// 下单金额
		/// </summary>
		public string total_fee { get; set; }
		/// <summary>
		/// 外部订单号
		/// </summary>
		public string out_trade_no { get; set; }
		/// <summary>
		/// 时间戳:yyyyMMddHHmmss
		/// </summary>
		public string terminal_time { get; set; }
		/// <summary>
		/// 订单号
		/// </summary>
		public string order_no { get; set; }
		/// <summary>
		/// 支付地址
		/// </summary>
		public string url { get; set; }
	}

	/// <summary>
	/// 快捷支付查询请求
	/// </summary>
	public class rpay2_kjquery_req : rpay2_req_base {
		public rpay2_kjquery_req() {
			pay_type = "10804";
		}
		/// <summary>
		/// 请求类型
		/// </summary>
		public string pay_type { get; set; }
		/// <summary>
		/// 平台订单号
		/// </summary>
		public string attach { get; set; }
	}

	/// <summary>
	/// 快捷支付查询响应
	/// </summary>
	public class rpay2_kjquery_resp : rpay2_resp_base {
		/// <summary>
		/// 外部订单号
		/// </summary>
		public string out_trade_no { get; set; }
		/// <summary>
		/// 支付平台订单号
		/// </summary>
		public string order_no { get; set; }
		/// <summary>
		/// 订单状态0: 已下单 1:已受理 2: 请求预支付 3:请求失败 4:支付中 5: 支付成功 6:支付失败 7:超时关闭
		/// </summary>
		public string order_status { get; set; }
		/// <summary>
		/// 交易金额
		/// </summary>
		public string total_fee { get; set; }
		/// <summary>
		/// 交易时间：yyyymmddhhmmss
		/// </summary>
		public string terminal_time { get; set; }
		/// <summary>
		/// 支付完成时间：yyyymmddhhmmss
		/// </summary>
		public string endtime { get; set; }
	}
}
